Repository navigation
Logo list element - #2507
Merged
Merged
Logo list element#2507
Conversation
Renders a list of logo images that uses original files for SVGs and web optimized variants otherwise.
Allows managing logo items via a sortable list and edit view. Hidden behind the logo_list_content_element feature flag.
Logos can be turned into links via in-place link editing. Clicking a logo in a selected element reveals its link action button. Hovering an item in the sidebar list highlights the corresponding logo.
The alt text of an image file describes the image, but where a logo is used decides what it needs to say. A linked logo, for example, should describe the link target. Items can now override the alt text of their image file. The file's alt text is shown as placeholder. Image accepts an alt prop that takes precedence over the alt text of the image file, so other content elements can offer overrides as well. Inputs with a placeholderModel now update their placeholder when the attribute changes, so editing the alt text in the file settings dialog is reflected right away.
Clicking a logo in the preview navigates to its item route. Editing an item via the sidebar list marks the logo in the preview until navigating back. File references in the files view lead to the item route of the logo using the file.
The marquee loops logos via an inert duplicate list. When visitors prefer reduced motion, it falls back to the static wrapped list. When focus moves into the list, the animation stops and the focused logo is scrolled into view, so that it cannot be hidden outside the visible area. While selected in the editor, the list is rendered statically to keep logos clickable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.